package com.ytjj.qmyx.supplychain.common.enums;

/**
 * @Description 后台管理员账号状态
 * @ClassName AdminStatusEnums
 *
 * 
 * @Version 1.0
 **/
public enum AdminStatusEnums {
    /**
     * 状态 0-未启用  1-已启用
     */
    UN_ACTIVATION(0, "未启用"),
    ACTIVATION(1, "启用中")
    ;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 状态描述
     */
    private String statusDesc;

    AdminStatusEnums(Integer status, String statusDesc) {
        this.status = status;
        this.statusDesc = statusDesc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public static String getStatusDesc(Integer status) {
        AdminStatusEnums[] values = AdminStatusEnums.values();
        for (AdminStatusEnums value : values) {
            if(value.status.equals(status)) {
                return value.statusDesc;
            }
        }
        return null;
    }
}
